﻿using System.Collections.Generic;
using Microsoft.Practices.Unity;
using SGDemo.OA.Entity;
using SGDemo.OA.Component;
using SGDemo.OA.Service.Interface;

namespace SGDemo.OA.Service
{
    /// <summary>
    /// File: NewsService.cs 服务类
    /// </summary>
    /// <remarks>
    /// <para>Author: "Ralph"</para>
    /// <para>Date: "2012-11-10"</para>
    /// <para>Version: "V1.0"</para>
    /// <para>Copyright: "神冠软件"</para>
    /// </remarks>
    public partial class OAService : IOAService
    {
        [Dependency]
        public NewsBLL NewsBLL
        { get; set; }

        public bool News_Add(NewsENT ent)
        {
            return this.NewsBLL.News_Add(ent);
        }

        public bool News_Delete(string keyid)
        {
            return this.NewsBLL.News_Delete(keyid);
        }

        public bool News_Update(NewsENT ent)
        {
            return this.NewsBLL.News_Update(ent);
        }

        public NewsENT News_GetByKeyid(string keyid)
        {
            return this.NewsBLL.News_GetByKeyid(keyid);
        }

        public List<NewsENT> News_PagingGet(int startRecord, int maxRecords, string sortColumns, string filterConditions)
        {
            return this.NewsBLL.News_PagingGet(startRecord, maxRecords, sortColumns, filterConditions);
        }

        public int News_PagingGetCount(string filterConditions)
        {
            return this.NewsBLL.News_PagingGetCount(filterConditions);
        }
    }
}

